package com.cancer.biz.common.exception;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView; 

/**
 * @Company GeekPlus
 * @Project common
 * @since 1.0.0
 * @Author  lijinguo
 * @Date    2017年7月22日 上午10:21:28
 * @Description 捕获业务代码中未抓取到异常 
 */

public class UnCatchExceptionResolver implements HandlerExceptionResolver{
	
	private static Logger logger = LoggerFactory.getLogger(UnCatchExceptionResolver.class);  

	@Override
	public ModelAndView resolveException(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2,
			Exception ex) {
		
		logger.error("UnCatched Exception Infor: ",ex);
		ex.printStackTrace();
		
		return null;
	}

}
